Analyzes all separate image and samplers used from the currently selected entry point,
and re-routes them all to a combined image sampler instead.
This is required to "support" separate image samplers in targets which do not natively support
this feature, like GLSL/ESSL.
This must be called before compile() if such remapping is desired.
This call will add new sampled images to the SPIR-V,
so it will appear in reflection if getShaderResources() is called after buildCombinedImageSamplers.
If any image/sampler remapping was found, no separate image/samplers will appear in the decompiled output,
but will still appear in reflection.
The resulting samplers will be void of any decorations like name, descriptor sets and binding points,
so this can be added before compile() if desired.
Combined image samplers originating from this set are always considered active variables.
Arrays of separate samplers are not supported, but arrays of separate images are supported.
Array of images + sampler -> Array of combined image samplers.
Analyzes all separate image and samplers used from the currently selected entry point, and re-routes them all to a combined image sampler instead. This is required to "support" separate image samplers in targets which do not natively support this feature, like GLSL/ESSL.
This must be called before compile() if such remapping is desired. This call will add new sampled images to the SPIR-V, so it will appear in reflection if getShaderResources() is called after buildCombinedImageSamplers.
If any image/sampler remapping was found, no separate image/samplers will appear in the decompiled output, but will still appear in reflection.
The resulting samplers will be void of any decorations like name, descriptor sets and binding points, so this can be added before compile() if desired.
Combined image samplers originating from this set are always considered active variables. Arrays of separate samplers are not supported, but arrays of separate images are supported. Array of images + sampler -> Array of combined image samplers.